package com.inspur.gs.sbssdl.sbwhgl.sbrh.sbrh.back.bizactions;
import com.inspur.edp.bef.api.lcp.IStandardLcp;
import com.inspur.edp.bef.core.LcpUtil;
import com.inspur.edp.cef.api.message.*;
import com.inspur.edp.bef.api.action.determination.*;
import com.inspur.edp.bef.api.action.validation.*;
import com.inspur.edp.cef.entity.changeset.*;
import com.inspur.edp.bef.api.be.*;
import com.inspur.edp.bef.api.action.VoidActionResult;
import com.inspur.edp.bef.spi.action.AbstractManagerAction;
import com.inspur.edp.cef.entity.entity.IEntityData;

public class sbssSbrhBzActiveStandMgrAction extends AbstractManagerAction<VoidActionResult> {
	private String id;
	private Boolean active;
	public sbssSbrhBzActiveStandMgrAction(IBEManagerContext managerContext, String id, Boolean active) {
		super(managerContext);
		this.id = id;
		this.active = active;
	}

	private String rhsCfg = "com.inspur.gs.sbssdl.sbwhgl.sbrh.sbrh.back.sbssSbrhBz";
	@Override
	public  void execute() {
		IStandardLcp lcp = LcpUtil.getLcp(rhsCfg);

		ModifyChangeDetail modify = new ModifyChangeDetail(id);
		modify.putItem("luActive",active);
		lcp.modify(modify);
		lcp.save();


	}
	private IBusinessEntity getEntity(String dataId) {
		return (IBusinessEntity)super.getBEManagerContext().getEntity(dataId);
	}	private IBEService getMgr() {
		return (IBEService)super.getBEManagerContext().getBEManager();
	}
}